<?php

/***  DOCUMENTATION LAYER

Ceo Sample Unit Test

Last Update: Aug 2007
  
DESCRIPTION
  this file provides a template for other simple unit tests.
  
NOTES
  $test_root dynamically sets root in order to keep tests working after
  they are moved to the __REPOSITORY directory
    
______________________________________________________________________________*/

$_tx0 = microtime();
$test_root = ( strpos(dirname(__FILE__), 'repository') === false ) ? '' : '../';


// Test Name
$test_name = 'extension integration test';

// Include Files
$test_root = ( strpos(dirname(__FILE__), '__REPOSITORY') === false ) ? '' : '../';
require_once($test_root . '../www/ceo.project_driver.inc.php');

// Configure Test
$debug = 1;


// Test Procedure
  $Test = new CeoFramework($debug, 'CeoFramework');
  $Test->print_d($test_name);
  
  // load framework
  $Test->PATH['datasafe'] = $Test->super_root . '__DEV'.$Test->DS.'nudgewink.inc.php';
  $Test->Err->filter_trivial = 1;
  $Test->load_framework();
  
  // load output extension
  $Test->load_ext('dbo');


// Footer
$_txn = microtime();
$stx = number_format(((substr($_txn,0,9)) + (substr($_txn,-10)) - (substr($_tx0,0,9)) - (substr($_tx0,-10))),4); 
echo "<h6>test '$test_name' complete in $stx s</h6>";
?>
